package com.zkthink.ceres.common.enums;

import com.zkthink.exception.BizException;
import lombok.Getter;

/**
 * @ClassName SupplyStatuseEnum
 * @Description: 兼职红娘申请审核状态
 * @Author ck
 * @Date 2021/11/10
 * @Version V1.0
 **/
@Getter
public enum AdjustStatuseEnum {
    JXZ_STATUS(0, "审核进行中"),
    TG_STATUS(1, "审核通过"),
    NTG_STATUS(2, "审核没通过"),
    FAIL_STATUS(3, "审核失败"),
    ;

    private int code;

    private String desc;

    AdjustStatuseEnum(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static AdjustStatuseEnum getDscByType(Integer type) {
        for (AdjustStatuseEnum p : values()) {
            if (p.getCode() == type.intValue()) {
                return p;
            }
        }
        throw new BizException("no support promotionPlan");
    }
}
